package com.pop.Demo03;

public class Pet {
    public String name;
    public int age;
    public void shout(){
        System.out.println("叫了一声");
    }
}
/**
 * package com.pop.pop;
 *
 * import com.pop.Demo03.Pet;
 *
 * public class Application{
 *     public static void main(String[] args) {
 *         Pet dog =new Pet();
 *         dog.name = "旺财";
 *         dog.age = 3;
 *         dog.shout();
 *         System.out.println(dog.name);
 *         System.out.println(dog.age);
 *
 *     }
 * }
 *
 *
 *
 *
 */